package com.YCH.model.mappers.app;

import com.YCH.model.article.pojos.TbArticleCommentReplay;
import com.YCH.model.behavior.dtos.userCommentReplayDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 16554
 */
public interface TbArticleCommentReplayMapper {
    Integer selectCommentReplayCountById(@Param("id")Long id);

    Integer selectCommentReplayCount(@Param("articleId")Long articleId);
    /**
     * 插入 有位置
     * @param tbArticleCommentReplay
     * @return
     */
    Integer insertHasLocation(TbArticleCommentReplay tbArticleCommentReplay);

    /**
     * 插入 无位置
     * @param tbArticleCommentReplay
     * @return
     */
    Integer insertNOLocation(TbArticleCommentReplay tbArticleCommentReplay);

    /**
     * 查询 评论回复
     * @return
     */
    List<TbArticleCommentReplay> selectCommentsByarticleIdAndcommentId(@Param("dto")userCommentReplayDto dto);
    /**
     * 查询 评论回复(前两条)
     * @return
     */
    List<TbArticleCommentReplay> selectCommentsByarticleIdAndcommentId2(@Param("dto")userCommentReplayDto dto);
}
